package ex204;

import ex204.shape.Circle;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double x1 = input.nextDouble();
        double y1 = input.nextDouble();
        double r1 = input.nextDouble();
        double x2 = input.nextDouble();
        double y2 = input.nextDouble();
        double r2 = input.nextDouble();

        Circle c1 = new Circle(x1, y1, r1);
        Circle c2 = new Circle(x2, y2, r2);

        if (c1.contains(c2)) {
            System.out.printf("圆(%.2f,%.2f)-%.2f 包含 圆(%.2f,%.2f)-%.2f\n", c1.getX(), c1.getY(), c1.getRadius(), c2.getX(), c2.getY(), c2.getRadius());
        }
        if (c2.contains(c1)) {
            System.out.printf("圆(%.2f,%.2f)-%.2f 包含 圆(%.2f,%.2f)-%.2f\n", c2.getX(), c2.getY(), c2.getRadius(), c1.getX(), c1.getY(), c1.getRadius());
        }
        if (c1.intersects(c2)) {
            System.out.printf("圆(%.2f,%.2f)-%.2f 与 圆(%.2f,%.2f)-%.2f 相交\n", c1.getX(), c1.getY(), c1.getRadius(), c2.getX(), c2.getY(), c2.getRadius());
        }
        if (c1.separates(c2)) {
            System.out.printf("圆(%.2f,%.2f)-%.2f 与 圆(%.2f,%.2f)-%.2f 无关\n", c1.getX(), c1.getY(), c1.getRadius(), c2.getX(), c2.getY(), c2.getRadius());
        }

    }
}
